# encoding: utf-8
import os

DEFAULT_CHARSET = 'utf-8'
INTERNAL_IPS = ('127.0.0.1',
                '192.168.10.10',
                '192.168.10.11',
                '192.168.10.12',
                '192.168.10.13',
                )

ADMINS = (
    ('Jorge Bastida', 'neo2001@gmail.com'),
)

MANAGERS = ADMINS


TIME_ZONE = 'Europe/Madrid'

LANGUAGE_CODE = 'en-us'

SITE_ID = 1

USE_I18N = True

FORCE_SCRIPT_NAME = ''

TEMPLATE_LOADERS = (
    'django.template.loaders.filesystem.load_template_source',
    'django.template.loaders.app_directories.load_template_source',
    'django.template.loaders.eggs.load_template_source',
)

MIDDLEWARE_CLASSES = (
    'django.contrib.sessions.middleware.SessionMiddleware',
    'django.middleware.locale.LocaleMiddleware',
    'django.middleware.common.CommonMiddleware',
    'django.contrib.auth.middleware.AuthenticationMiddleware',
    'django.middleware.gzip.GZipMiddleware',
    'mobile.middleware.MobileMiddleware',
)

ROOT_URLCONF = 'infocarretera.urls'

TEMPLATE_DIRS = (
    os.path.join(os.path.dirname(os.path.realpath(__file__)), '../templates'),
)

TEMPLATE_CONTEXT_PROCESSORS = (
    "django.core.context_processors.auth",
    "django.core.context_processors.debug",
    "django.core.context_processors.i18n",
    "django.core.context_processors.media",
)

INSTALLED_APPS = (
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    'django.contrib.admin',
    'dajaxice',
    'dajax',
    'website',
    'mobile',
    'agent',
)

LOGIN_REDIRECT_URL = "/"

CACHE_MIDDLEWARE_ANONYMOUS_ONLY = True

GOOGLE_API_KEY = "ABQIAAAALCdLm8DU2gHDctObOm4ddxSfV8CQ4puBgBqzGO1wzJue1i6WWRRDXjBIQ21bL8J7Twn2xLfg_qprnA"

DAJAXICE_MEDIA_PREFIX = "dajaxice"

try:
    from private_settings import * #Todos los passwords van en este fichero, por motivos logicos no forma parte del svn ^^.
except:
    pass